package com.example.yingjiguanli_demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.yingjiguanli_demo.pojo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * <p>
 * 学生申请导师表 服务类
 * </p>
 *
 * @author scj
 * @since 2024-12-07
 */
public interface IApplicationsService extends IService<Applications> {
    // 提交导师申请
    Result<T> submitApplication(String sessionId, ApplicationRequest applicationRequest);

    // 更新申请状态
    Result<T> updateApplicationStatus(Integer applicationId, String status);
    // 获取申请信息
    Applications getApplication(Integer applicationId);
    //查询个人申请记录
    Result<List<ApplicationWithMentorDTO>> getApplicationBySessionId(String sessionId);

    // 获取申请信息
    Result<Page<ApplicationWithStudentAndMentorDTO>> getApplicationsPage(String sessionId, int pageNum, int pageSize);
}
